package org.example;

import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        Solution s = new Solution();
        int[] ints = s.smallestK(new int[]{1, 3, 5, 7, 2, 4, 6, 8}, 4);
        for (int i = 0; i < ints.length; i++) {
            System.out.print(ints[i] + " ");
        }
    }
}